<?php


//订单状态
defined ( 'STATUS_NEW_ORDER' ) or define ( 'STATUS_NEW_ORDER', 1 ); //新订单
defined ( 'STATUS_RECEIVED_ORDER' ) or define ( 'STATUS_RECEIVED_ORDER', 2 ); //已接单
defined ( 'STATUS_DISTRIBUTION_ORDER' ) or define ( 'STATUS_DISTRIBUTION_ORDER', 3 ); //配送中
defined ( 'STATUS_SETTlLED_ORDER' ) or define ( 'STATUS_SETTlLED_ORDER', 4 ); //已结算
defined ( 'STATUS_UNSUBSCRIBED_ORDER' ) or define ( 'STATUS_UNSUBSCRIBED_ORDER', 5 ); //已退订
defined ( 'STATUS_OVERTIME_ORDER' ) or define ( 'STATUS_OVERTIME_ORDER', 10 ); //超时取消支付
defined ( 'STATUS_MANUALLY_CANCEL_ORDER' ) or define ( 'STATUS_MANUALLY_CANCEL_ORDER', 11 ); //用户手动取消
defined ( 'STATUS_COMPLETED_ORDER' ) or define ( 'STATUS_COMPLETED_ORDER', 12 ); //已完成

//订单支付状态
defined ( 'STATUS_PAYMENT_PAY' ) or define ( 'STATUS_PAYMENT_PAY', 1 ); //支付中，
defined ( 'STATUS_SUCCESS_PAY' ) or define ( 'STATUS_SUCCESS_PAY', 5 ); //支付成功
defined ( 'STATUS_USER_CANCEL_PAY' ) or define ( 'STATUS_USER_CANCEL_PAY', 10 ); //用户取消支付
defined ( 'STATUS_SYSTEM_CANCEL_PAY' ) or define ( 'STATUS_SYSTEM_CANCEL_PAY', 25 ); //系统取消
defined ( 'STATUS_REFUND_ORDER' ) or define ( 'STATUS_REFUND_ORDER', 20 ); //退订退款


//退款通知模板ID
defined ( 'REFUND_NOTICE' ) or define ( 'REFUND_NOTICE', 'SkxgjIWk3p-gftf0GQkZKr2EiD_MWnfce45ukW1rKNo' );
//订单评价通知模板ID
defined ( 'ORDER_EVAlLUATION_NOTICE' ) or define ( 'ORDER_EVAlLUATION_NOTICE', 'DTIYxSE95YJzSALEP-YP3for4L9rfq969hDOOYgIwNc' );
//订单交易成功通知模板ID
defined ( 'ORDER_PAYMENT_NOTICE' ) or define ( 'ORDER_PAYMENT_NOTICE', 'oFSt3pxxE55M4kLtYkABnAjv8HvRgDX1S_4YwHPHY5g' );
//小程序APP_ID
defined ( 'APP_ID' ) or define ( 'APP_ID', 'wx274d30bc58ca4b27' );
//小程序APP_SECRET
defined ( 'APP_SECRET' ) or define ( 'APP_SECRET', 'b82cd34c988ab4375285d47497dff54f' );

return array (

    //订单支付类型
    'order_pay_type' => [
        '1' => '微信',
        '5' => '嘉和卡',
        '25'=> '早餐月卡',
        '30'=> '共享早餐卡'
    ],


    'pay_log_type' => [
        '30' => '微信小程序支付'
    ],
    'status_pay' => [
        '1' => '支付中',
        '5' => '支付成功',
        '10' => '用户取消支付',
        '15' => '系统取消',
        '20' => '退订退款'
    ],
    //订单的状态（0：待支付，1：新订单，2：已接单，3：配送中，4：已结算，5：已退订，10：超时取消支付，11：用户手动取消，12：已完成）
    'status_order' => [
        0 => '待支付',
        1 => '新订单',
        2 => '已接单',
        3 => '配送中',
        4 => '已结算',
        5 => '已退订',
        10 => '超时取消',
        11 => '用户取消',
        12 => '已完成',
    ],


);